#include "STC8H.H"
void delayMs();
void Delay500ms();

void main() {
  P5M0 = 0x00;
  P5M1 = 0x00;



  while(1) {
    P53 = 1;
    Delay500ms();
    P53 = 0;
    Delay500ms();
  }
}

void delayMs() {
  unsigned char i, j, k;
  i = 200;
  j = 200;
  k = 20;

  while(i--) {
    while(j--) {
      while(k--);
    }
  }
}

void Delay500ms()		//@11.0592MHz
{
	unsigned char data i, j, k;

	
	i = 22;
	j = 3;
	k = 227;
	do
	{
		do
		{
			while (--k);
		} while (--j);
	} while (--i);
}

